package com.lagou.mapper;

import com.alibaba.dubbo.config.annotation.Service;
import com.lagou.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Service //这里必须添加这个注解
@Component
public interface UserMapper {

    public int register(User users);

    public int deleteUser(Integer id);

    public int updateUser(User user);

    public List<User> findAll(@Param("keyword") String keyword);

    public User findById(Integer id);
}
